package com.example.thinkerstudy

import android.app.Application
import android.content.Context
import androidx.multidex.MultiDex
import com.tencent.bugly.Bugly
import com.tencent.bugly.beta.Beta

class MyApplication : Application() {
    override fun onCreate() {
        super.onCreate()
        Bugly.init(this, "c939d0f7b0", false)
    }

    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
        // you must install multiDex whatever tinker is installed!
        MultiDex.install(base)
        // 安装tinker
        // TinkerManager.installTinker(this); 替换成下面Bugly提供的方法
        Beta.installTinker(this)
    }
}